package cn.blu10ph.git;

import cn.blu10ph.git.index.*;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by blu10ph on 2016-07-20.
 */
public class GitIndex {
    int indexVersion = 0;
    int indexLenght = 0;
    Map<String , GitIndexItemMini> indexItemList = new HashMap<>();
    byte[] indexByte = null;
    public GitIndex(){}
    public GitIndex(int version,int lenght,Map<String , GitIndexItemMini> indexItemList){
        this.indexVersion = version;
        this.indexLenght = lenght;
        this.indexItemList = indexItemList;
    }
    public int getIndexVersion() {
        return indexVersion;
    }
    public int getIndexLenght() {
        return indexLenght;
    }
    public byte[] getIndexByte() {
        return indexByte;
    }
    public Map<String , GitIndexItemMini> getIndexItemList() {
        return indexItemList;
    }
}
